import { defineConfig } from 'alita';
const env = process.env.APP_NAME;
const config = require(`./config.${env}.ts`);

export default defineConfig({
  // 默认配置
  appType: 'h5',
  keepalive: [
    /list/,
    
    '/', // 首页缓存
    '/study/search', 
    // '/customer/search',
    // '/opportunity/search',
    // '/finance/reimb/living/search',
    // '/block/search',
    // '/block/obs-material/search',
    // '/finance/reimb/search',
    // '/partner/supplier/search',
    // '/backend/standard-node/search',
    // '/backend/subject/search',
    // '/region/search',
    // '/oa-company/search',
    // '/finance/invoice-pocket/search',
    // '/partner/supplier/search',
    // '/block/invoice-apply/search',
    // '/performance/search',
    // '/performance/search?level=root',

    // // '/performance/oa-department-stats',
    // '/performance/whole-stats',
  ],

  // 需要调试工具可打开这个配置，仅开发有效
  // aconsole: {
  //   console: {},
  //   inspx: {},
  // },
  mobileLayout: 'mobile5',
  hash: true,
  npmClient: 'pnpm',

  
  // 对应环境的配置，会覆盖默认配置
  ...config.default,
});
